package com.shangcheng.users.feign;

import com.shangcheng.users.pojo.Address;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "users")
@RequestMapping("/address")
public interface AddressFeign {

    @RequestMapping("/list")
    public Result<List<Address>> list(@RequestParam("username") String username);
}
